﻿using Wicresoft.fjyc.Integration.Engine;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using Wicresoft.fjyc.Integration.HR.Interface;
using System.Collections.Generic;

namespace TestProject1
{
    
    
    /// <summary>
    ///This is a test class for HREngineTest and is intended
    ///to contain all HREngineTest Unit Tests
    ///</summary>
    [TestClass()]
    public class HREngineTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for GetClients
        ///</summary>
        [TestMethod()]
        public void GetClientsTest()
        {
            HREngine target = new HREngine(); // TODO: Initialize to an appropriate value
            IEnumerable<IEmployeeOperation> expected = null; // TODO: Initialize to an appropriate value
            IEnumerable<IEmployeeOperation> actual;
            actual = target.GetClients();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetDepartmentFromHR
        ///</summary>
        [TestMethod()]
        public void GetDepartmentFromHRTest()
        {
            HREngine target = new HREngine(); // TODO: Initialize to an appropriate value
            string beginTime = string.Empty; // TODO: Initialize to an appropriate value
            string endTime = string.Empty; // TODO: Initialize to an appropriate value
            target.GetDepartmentFromHR(beginTime, endTime);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Execute
        ///</summary>
        [TestMethod()]
        public void ExecuteTest()
        {
            HREngine target = new HREngine(); // TODO: Initialize to an appropriate value
            target.Execute();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetEmployeeFromHR
        ///</summary>
        [TestMethod()]
        public void GetEmployeeFromHRTest()
        {
            HREngine target = new HREngine(); // TODO: Initialize to an appropriate value
            string beginTime = string.Empty; // TODO: Initialize to an appropriate value
            string endTime = string.Empty; // TODO: Initialize to an appropriate value
            target.GetEmployeeFromHR(beginTime, endTime);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetEmployeeFromLocalDB
        ///</summary>
        [TestMethod()]
        public void GetEmployeeFromLocalDBTest()
        {
            HREngine target = new HREngine(); // TODO: Initialize to an appropriate value
            string lastEndTime = string.Empty; // TODO: Initialize to an appropriate value
            List<Employee> expected = null; // TODO: Initialize to an appropriate value
            List<Employee> actual;
            actual = target.GetEmployeeFromLocalDB(lastEndTime);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetLDAPConditions
        ///</summary>
        [TestMethod()]
        public void GetLDAPConditionsTest()
        {
            string deptCode = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = HREngine.GetLDAPConditions(deptCode);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetLDAPUidAndMail
        ///</summary>
        [TestMethod()]
        public void GetLDAPUidAndMailTest()
        {
            HREngine target = new HREngine(); // TODO: Initialize to an appropriate value
            string cName = string.Empty; // TODO: Initialize to an appropriate value
            string deptName = string.Empty; // TODO: Initialize to an appropriate value
            string deptCode = string.Empty; // TODO: Initialize to an appropriate value
            string[] expected = null; // TODO: Initialize to an appropriate value
            string[] actual;
            actual = target.GetLDAPUidAndMail(cName, deptName, deptCode);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for QueryDatePeroid
        ///</summary>
        [TestMethod()]
        public void QueryDatePeroidTest()
        {
            HREngine target = new HREngine(); // TODO: Initialize to an appropriate value
            DateTimePeroid expected = null; // TODO: Initialize to an appropriate value
            DateTimePeroid actual;
            actual = target.QueryDatePeroid();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for QueryDatePeroid
        ///</summary>
        [TestMethod()]
        public void GetUidTest()
        {
            HREngine target = new HREngine(); // TODO: Initialize to an appropriate value
            target.GetUid("李俊");
        }
    }
}
